﻿@model IEnumerable<KCMS.BusinessLogic.Models.OrderStatus>

@{
    ViewBag.Title = "History";
}

<h2>History  Order №@Model.First().Order.Number</h2>

<table>
    <tr>
        <th>
            Order №
        </th>
          <th>
            Status
        </th>
        <th>
            Date
        </th>
      
        @*<th></th>*@
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Order.Number)
        </td>
              <td>
            @Html.DisplayFor(modelItem => item.Title)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Date)
        </td>
  
      @*  <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>*@
    </tr>
}

</table>
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
